home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4652 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  937 b 

  1. Path: winternet.com!news
  2. From: johna@poliac.com (John  R. Aldrin)
  3. Newsgroups: comp.lang.c++
  4. Subject: What is correct behavoir for inputting text files opened in binary mode with streams
  5. Date: Wed, 31 Jan 1996 15:21:54 GMT
  6. Organization: Poliac Research
  7. Message-ID: <310f8908.45414683@news.winternet.com>
  8. NNTP-Posting-Host: 204.246.91.132
  9. X-Newsreader: Forte Agent .99d/32.173
  10.  
  11. Hi,
  12.  
  13. I am using the Borland C++ compiler and I have noticed a difference in
  14. the way versions 4.5 and 4.52 process the cr/lf when inputing lines of
  15. text with a stream that has been opened in binary mode.  In version
  16. 4.5.2 the cr\lf is stripped from the string when input, the cr\lf pair
  17. was not stripped in 4.5.  Since this sort of information would never
  18. be documented by Borland and the C++ IOStreams book I have was not
  19. clear, I was wondering what the correct behavoir is.   Maybe the C++
  20. standard has defined this behavoir and Borland changed.
  21.  
  22. Thanx
  23.  
  24. jra
  25.     
  26.